﻿using NewBusiness.Domain.Uow;
using MongoDB.Driver;

namespace NewBusiness.Domain
{
    public interface IDomainContext
    {

    }

    public class DomainContext : IDomainContext
    {
        public readonly IUow Uow;
        public readonly ISession Session;
        public readonly MongoDatabase mongoDB;

        public DomainContext(IUow uow, ISession session, MongoDatabase mdb)
        {
            Uow = uow;
            Session = session;
            mongoDB = mdb;
        }
    }
}
